-- BagCurrency <OnLoad>
function CE.BagCurrency_OnLoad(this)
	this:RegisterEvent("PLAYER_BAG_CHANGED")
	this:RegisterEvent("PLAYER_MONEY")
end
-- BagCurrency <OnEvent>
function CE.BagCurrency_OnEvent(this, event)
	if event == "PLAYER_BAG_CHANGED" then
		CE.BagCurrency_Text()
	elseif
		event == "PLAYER_MONEY" then
		CE.BagCurrency_Text()
	end
end
-- BagCurrency <OnShow>
function CE.BagCurrency_OnShow()
	OpenGoodsButton:ClearAllAnchors()
	OpenGoodsButton:SetAnchor("BOTTOMLEFT","BOTTOMLEFT", "BagFrame", 16, -36)
	OpenGarbageButton:ClearAllAnchors()
	OpenGarbageButton:SetAnchor("BOTTOMLEFT","BOTTOMLEFT", "BagFrame", 16, -6)
	BagLetTimeText:ClearAllAnchors()
	BagLetTimeText:SetAnchor("BOTTOMLEFT","BOTTOMLEFT", "BagFrame", -100, 18)
	BagFrameAccountMoney:ClearAllAnchors()
	BagFrameAccountMoney:SetAnchor("TOPRIGHT","TOPRIGHT", "BagCurrency", -10, 0)
	BagFrameCostBackMoney:ClearAllAnchors()
	BagFrameCostBackMoney:SetAnchor("TOPRIGHT","TOPRIGHT", "BagCurrency", -10, 16)
	BagFrameMoney:ClearAllAnchors()
	BagFrameMoney:SetAnchor("TOPRIGHT","TOPRIGHT", "BagCurrency", -10, 31)
	CE.BagCurrency_Text()
end
-- Set text
function CE.BagCurrency_Text()
	local shell = GetPlayerPointInfo(1, 1, "")
	local energy = GetPlayerPointInfo(1, 2, "")
	local memento = GetPlayerPointInfo(2, 1, "")
	local myght = GetPlayerPointInfo(2, 2, "") + GetBagItemCount(241706)
	local badge = GetPlayerPointInfo(3, 2, "")
	local token = GetBagItemCount(203038)
	local honor = GetPlayerPointInfo(3, 1, "")
	BagCurrency_ShellText:SetText(CE.Format_Thousand(shell))
	BagCurrency_EnergyText:SetText(CE.Format_Thousand(energy))
	BagCurrency_MementoText:SetText(CE.Format_Thousand(memento))
	BagCurrency_MyghtText:SetText(CE.Format_Thousand(myght))
	BagCurrency_BadgeText:SetText(CE.Format_Thousand(badge))
	BagCurrency_TokenText:SetText(CE.Format_Thousand(token))
	BagCurrency_HonorText:SetText(CE.Format_Thousand(honor))
end
	